package com.xmy.service.imlp;

import com.xmy.dao.*;
import com.xmy.dao.Impl.MasterDaoImpl;
import com.xmy.dao.Impl.PetDaoImpl;
import com.xmy.dao.Impl.PetStoreDaoImpl;
import com.xmy.entity.Account;
import com.xmy.entity.Master;
import com.xmy.entity.Pet;
import com.xmy.entity.PetStore;
import com.xmy.service.*;

import java.util.List;

public class PetStoreServiceImpl extends BaseDao implements PetStoreService, Buyable, Sellable, Accountable, Breedable {
    PetStoreDao psd = new PetStoreDaoImpl();
    PetDao petDao = new PetDaoImpl();

    @Override
    public List<Pet> getPetsInStock(String str) {
        List<Pet> pets = psd.SelPetByBreed(str);
        return pets;
    }

    @Override
    public List<Pet> getPetBreed(int storeId) {
        return null;
    }

    @Override
    public void charge(Pet pet) {

    }

    @Override
    public PetStore login(String id,String pwd) {
        PetStore petStore = psd.SelLogin(id,pwd);
        return petStore;
    }


    @Override
    public List<Account> getAccount(int storeId) {
        return null;
    }

    @Override
    public Pet breed(String petType) {
        return null;
    }

    @Override
    public void buy(Pet pet) {

    }

    @Override
    public void sell(Pet pet) {

    }
}
